]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyringPrompt: Improve styling here as well
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 14 Aug 2012 16:05:34 +0000 (13:05 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 14 Aug 2012 16:14:08 +0000 (13:14 -0300)
Again, center the "Password" label, and add some spacing between
it and the entry.

https://bugzilla.gnome.org/show_bug.cgi?id=681821

data/theme/gnome-shell.css
js/ui/keyringPrompt.js

index 671c45028059d63c812fd6c7ad3f0cacc001094a..c3a0fe93f4d5ad94a91da94e3b7aaab4a464bc8b 100644 (file)
@@ -1907,6 +1907,7 @@ StButton.popup-menu-item:insensitive {
 
 .keyring-dialog-control-table {
     spacing-rows: 15px;
+    spacing-columns: 1em;
 }
 
 /* Magnifier */
index da26d2a825a5602d7dba98ecc3f525de9dbacda4..814c9467bd68c458ac453a3a6e571f371c4fc408 100644 (file)
@@ -84,7 +84,10 @@ const KeyringDialog = new Lang.Class({
         if (this.prompt.password_visible) {
             let label = new St.Label(({ style_class: 'prompt-dialog-password-label' }));
             label.set_text(_("Password:"));
-            table.add(label, { row: row, col: 0, x_expand: false, x_fill: true, x_align: St.Align.START });
+            table.add(label, { row: row, col: 0,
+                               x_expand: false, x_fill: true,
+                               x_align: St.Align.START,
+                               y_fill: false, y_align: St.Align.MIDDLE });
             this._passwordEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry',
                                                  text: '',
                                                  can_focus: true});
@@ -100,7 +103,10 @@ const KeyringDialog = new Lang.Class({
         if (this.prompt.confirm_visible) {
             var label = new St.Label(({ style_class: 'prompt-dialog-password-label' }));
             label.set_text(_("Type again:"));
-            table.add(label, { row: row, col: 0, x_expand: false, x_fill: true, x_align: St.Align.START });
+            table.add(label, { row: row, col: 0,
+                               x_expand: false, x_fill: true,
+                               x_align: St.Align.START,
+                               y_fill: false, y_align: St.Align.MIDDLE });
             this._confirmEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry',
                                                 text: '',
                                                 can_focus: true});